//
//  CHVisitorView.swift
//  status
//
//  Created by 彳亍 on 2017/3/22.
//  Copyright © 2017年 彳亍. All rights reserved.
//

import UIKit

class CHVisitorView: UIView {
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        backgroundColor = UIColor.ch_colorWithHex(hex: 0xEDEDED)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    /// 访客信息
    var visitorInfo:[String:String]?
    
    /// 登陆
    @objc func login() {
        print(#function)
        NotificationCenter.default.post(name: NSNotification.Name(rawValue: CHUserLoginNotification), object: nil)
    }
    /// 注册
    @objc func register() {
        print(#function)
        NotificationCenter.default.post(name: NSNotification.Name(rawValue: CHUserRegisterNotification), object: nil)
    }
    /// 关注
    @objc func attention() {
        print(#function)
    }

    
}
